package com.jt.pojo;

import java.util.Random;

public class User {
    public int a;

    public User() {
        a = new Random().nextInt(9999);
        System.out.println("新建对象" + a);
    }

    public void say() {
        System.out.println("你好，Spring框架");
    }

    private String conn;

    public void init() {
        this.conn = "Hallo World";
    }

    public void destory() {
        this.conn = null;
        System.out.println("释放资源" + this.conn + "!!!");
    }
}
